﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using DXApplicationTangche.UC.订单异常.service;

namespace DXApplicationTangche.UC.订单异常
{
    public partial class Form订单异常看板 : DevExpress.XtraEditors.XtraForm
    {
        private List<DTO订单异常> list = new List<DTO订单异常>();
        public Form订单异常看板()
        {
            InitializeComponent();
            try
            {
                this.list = 订单异常Service.get订单异常一览();
                //尺码截取
                this.gridControl异常一览.DataSource = 尺码();
                this.gridView异常一览.ExpandAllGroups();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
            
        }

        private List<DTO订单异常> 尺码()
        {
            foreach (DTO订单异常 DTO订单异常 in this.list)
            {
                DTO订单异常.styleSizeCd = DTO订单异常.styleSizeCd.Replace("IGS_GROUP_SIZE-", "").Replace("EGS_GROUP_SIZE-", "");
            }
            return this.list;
        }

    }
}